package ink.xiaobaibai.common;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 购买业务臭氧查询条件bo
 * @author: 小白白
 * @create: 2021-06-12
 **/

@Data
public class SelectBuyBo {

    @NotNull
    @Min(1)
    private Integer pageNum;

    @NotNull
    @Min(1)
    private Integer pageSize;

    private Integer deviceId;

    private String deviceCode;

    private Integer adminUserId;

    private Integer depId;

    private Integer clientUserId;

    public Integer getLimitStart() {
        return (this.pageNum - 1) * this.pageSize;
    }

    public Integer getLimitEnd() {
        return this.pageSize;
    }

}
